			
            <div id="title-bar">
                <div id="element-count">
                    <div id="info-element">
                        <div class="number"><?php echo $countorders?></div>
                        <span>hóa đơn</span>
                    </div>
                    <div id="img-element">
                    	<div class="nav-icons ico-orders"></div>
                    </div>
                </div>
                <h2 id="title-page">Hóa đơn dịch vụ (<?php echo $action["display_name"]?>)</h2>
            </div>
            <div class="row-fluid">
            	<?php if(isset($textkeysearch)):?>
                
                <h4>
                	CÓ <?php echo ($listorders)?count($listorders):0;?> KẾT QUẢ ĐƯỢC TÌM KIẾM TỪ "<em><?php echo $textkeysearch?></em>"
                    <a href="" onClick="parent.location='';return false;"><i class="icon-remove-sign"></i></a>
                </h4>
                <?php endif;?>
                
            </div>
            <div class="row-fluid">
            	<div class="span8">
                	<!--<?php echo form_open('administrator/order/waitcensor','method="get" name="form_filter"')?>
                	
                        <div class="input-group filter-group">
                            <span class="input-group-addon"><i class="icon-filter"></i></span>
                            <?php if(!empty($typechannelid)):?>
                            
                            <span class="input-group-addon"><a rel="tooltip" title="Remove filter" href="" onClick="parent.location='manager';return false;"><i class="icon-remove"></i></a></span>
                            <?php endif;?>
                            
                            <select name="spid" onChange="document.form_filter.submit()">
                                <option value="" disabled selected>Chọn gói kênh...</option>
                                <?php foreach($listservicepack as $row){?>
                                
                                <option value="<?php echo $row->SpId ?>" <?php echo ($row->SpId==$servicepackid)?"selected='selected'":"" ?>><?php echo $row->NameService_vn ?></option>
                            <?php }?>
                            
                            </select>
                        </div>
                    <?php echo form_close()?>-->
                    
                </div>
            	<div class="span4">
                	<div class="pull-right">
                    	<?php echo form_open('administrator/order/'.$action["name"], 'id="formSearch" class="form-inline"') ?>
                        
                        	<div class="input-append">
                            	<input type="text" value="<?php echo set_value('keysearch')?>" name="keysearch" id="keysearch" placeholder="Nhập từ khóa" class="input-medium" autocomplete="off" />
                                <select id="field-search" name="field_search">
                                	<option value="1" <?php echo set_select('field_search',1)?>>Mã HĐ</option>
                                    <option value="2" <?php echo set_select('field_search',2)?>>Khách hàng</option>
                                </select>
                                <button class="btn">
                                	<i class="icon-search"></i>
                                </button>
                            </div>
                        <?php echo form_close() ?>
                        
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
                <table class="table table-striped table-bordered genaral-tables" width="100%">
                	<thead>
                    	<tr>
                        	<th width="3%">#</th>
                            <th width="10%">Mã HĐ</th>
                            <th width="13%">Gói kênh</th>
                            <th width="8%">Thời hạn</th>
                            <th width="17%">Khách hàng</th>
                            <th width="18%">Phương thức thanh toán</th>
                            <th width="13%">Ngày tạo</th>
                            <th width="10%">Tổng tiền</th>
                            <th width="8%">Hành động</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<?php if($listorders): foreach($listorders as $row){?>
                        
                        <tr rel="<?php echo $row->OrderId ?>" id="table_row_<?php echo $row->OrderId?>">
                            <td class="text-center stt"><?php echo $row->stt ?></td>
                            <td class="text-center">
                            	<a href=""><?php echo $row->Codes ?></a>
                            </td>
                            <td class="text-center"><?php echo $row->NameService_vn ?></td>
                            <td class="text-center"><?php echo $row->Duration ?> tháng</td>
                            <td><?php echo $row->FullName ?></td>
                            <td class="text-center"><?php echo $row->NameMethod_vn ?></td>
                            <td class="text-center"><?php echo date('d-m-Y H:i:s', strtotime($row->CreateDate)) ?></td>
                            <td class="text-center"><?php echo number_format($row->TotalPrice,0,',','.') ?> VNĐ</td>
                            <td class="table-col-action text-center">
                                <a rel="tooltip" href="<?php echo base_url('administrator/order/'.$action["name"].'?act=view&orderid='.$row->OrderId)?>" title="Xem hóa đơn">
                                	<i class="icon-eye-open"></i>
                                </a>
                                <?php if($row->Status!=2):?>
                                
                                <a class="btn-delete" rel="tooltip" href="<?php echo base_url('administrator/order/cancel/'.$row->OrderId.'/'.$action["name"])?>" title="Hủy hóa đơn" >
                                	<i class="icon-remove"></i>
                                </a>
                                <?php endif;?>
                                
                            </td>
                        </tr>
                        <?php } else: ?>
                        
                        <tr>
                            <td class="text-center" colspan="9">
                                Không có mục nào được tìm thấy
                            </td>
                        </tr>
                       	<?php endif;?>
                        
                        <tr>
                            <td class="tableFooter" colspan="9">
                                <div class="pull-left"></div>
                                <div class="pagination pull-right">
                                	<?php echo $paging; ?>
                                    
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                
            